package edu.tongji.structureplayer.ui
{
    import flash.events.Event;
    import flash.events.MouseEvent;
    
    import mx.containers.Canvas;
    import mx.managers.CursorManager;
    
    public class StructureCanvas extends Canvas
    {
        public function StructureCanvas()
        {
            super();
        }
        
        public override function initialize():void
        {
            super.initialize();
        }
        
        public function dispatchMouseEventToChildren(event:MouseEvent):void
        {
            var children:Array = this.getChildren();
            for (var i:uint=0; i<children.length; i++)
            {
                var panel:StructurePanel = children[i] as StructurePanel;
                if (panel.isOnResizing())
                    panel.dispatchEvent(event);
            }
        }
        
        
    }
}